package com.xx.springBootUtil.zzcache;

import lombok.Data;

/**
 * 自定义缓存对象
 * @program: xunyou-parent
 * @author: zhl
 * @create: 2019-05-12
 **/
@Data
public class ZZCache {

    /**
     * 数据
     */
    private String data;

    /**
     *  添加时间
     *  时间戳毫秒值
     */
    private long createTime;

    /**
     * 时长 null说明是永久保存  毫秒值
     */
    private Long time;

    public ZZCache() {

    }

    public ZZCache(String data, long createTime) {
        this.data = data;
        this.createTime = createTime;
    }

    public ZZCache(String data, long createTime, Long time) {
        this.data = data;
        this.createTime = createTime;
        this.time = time;
    }
}
